package com.yc.rh.biz.impl;

import java.util.List;

import com.yc.rh.biz.IServicesGroupInfoBiz;
import com.yc.rh.dao.IServicesGroupInfoDao;
import com.yc.rh.entities.ServicesGroupInfo;

public class ServicesGroupInfoBizImpl implements IServicesGroupInfoBiz{
	private IServicesGroupInfoDao servicesGroupInfoDao;
	
	public void setServicesGroupInfoDao(IServicesGroupInfoDao servicesGroupInfoDao) {
		this.servicesGroupInfoDao = servicesGroupInfoDao;
	}

	@Override
	public int addServiceGroupInfo(ServicesGroupInfo sgi) {
		return servicesGroupInfoDao.addServiceGroupInfo(sgi);
	}

	@Override
	public List<ServicesGroupInfo> find(Integer pageNo, Integer pageSize) {
		return servicesGroupInfoDao.find(pageNo, pageSize);
	}

	@Override
	public int updateInfo(ServicesGroupInfo sgi) {
		return servicesGroupInfoDao.updateInfo(sgi);
	}

	@Override
	public int find(String sgtype) {
		return servicesGroupInfoDao.find(sgtype);
	}

	@Override
	public int delInfo(String sgid) {
		return servicesGroupInfoDao.delInfo(sgid);
	}

	@Override
	public int getTotal() {
		return servicesGroupInfoDao.getTotal();
	}
}
